package com.comac.print.component.app.gatewayimpl.database.dataobject;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * MQ日志记录表
 * </p>
 *
 * @author yy
 * @since 2022-4-19
 */
@Builder
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("mq_log")
@NoArgsConstructor
@AllArgsConstructor
public class MqLogDO implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "ID", type = IdType.AUTO)
    private Integer id;

    /**
     * 消息ID
     */
    @TableField("MSG_ID")
    private String msgId;

    /**
     * 返回结果
     */
    @TableField("RESULT")
    private String result;

    /**
     * 主题
     */
    @TableField("TOPIC")
    private String topic;

    /**
     * 标签
     */
    @TableField("TAG")
    private String tag;

    /**
     * 核心参数
     */
    @TableField("CORE_PARAM")
    private String coreParam;

    /**
     * 堆栈异常信息
     */
    @TableField("EXCEPTION")
    private String exception;

    /**
     * 日志类型 normal,error
     */
    @TableField("LOG_TYPE")
    private String logType;

    @TableField("CREATOR")
    private String creator;

    @TableField("CREATE_TIME")
    private LocalDateTime createTime;

}
